package com.education.springbootdemo.vo;

import lombok.Data;

import java.io.Serializable;

@Data
public class Token implements Serializable {
    private  Long createAt;

    private  String token;

    public Token(Long ts,Long id) {
        this.createAt = ts;
        this.token = String.valueOf(id);
    }

    public Token(String jwt) {
         this.token = jwt;
         this.createAt = System.currentTimeMillis();
    }
}
